<template>
<div>
    <h1>vue-router的基本使用</h1>
    <!-- 声明路由链接:router-link会被vue-router渲染成a链接 -->
    <!-- to属性声明hash地址，并且hash地址不再以#开头 -->
    <router-link to="/home">首页</router-link>&nbsp;
    <router-link to="/movie">电影</router-link>&nbsp;
    <router-link to="/about">关于</router-link>&nbsp;
    <hr>
    <!-- 声明路由的占位符号 -->
    <router-view></router-view>
</div>
</template>

<script>
export default{
    name:'MyApp',
}
</script>

<style lang="less" scoped>
</style>